/*
package com.lzy.config;

import com.lzy.properties.AliyunSmsProperties;
import com.lzy.sms.SmsService;
import com.lzy.sms.impl.AliyunSmsServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

*/
/**
 * @author lzy by 2019/9/10 14:56
 *//*

@Configuration
@EnableConfigurationProperties({AliyunSmsProperties.class})
@ConditionalOnProperty(name = "cn.hxxf.sdk.sms.enabled", havingValue = "true")
public class SmsAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    @ConditionalOnProperty(name = "cn.hxxf.sdk.sms.platform", havingValue = "ALIYUNCS")
    public SmsService getAliyunSmsService(AliyunSmsProperties aliyunSmsProperties) {
        return new AliyunSmsServiceImpl(aliyunSmsProperties);
    }


}
*/
